package infiews;

import infiews.crawler.Crawler;
import infiews.fetch.PageFetcher;
import infiews.web.HTMLParser;
import infiews.web.Page;

/**
 * Created by IntelliJ IDEA.
 * User: Вадим
 * Date: 29.4.11
 * Time: 0.24
 * To change this template use File | Settings | File Templates.
 */
public class ContentFetcherTest {
	public static void main(String... args){
		try{
		Crawler c = new Crawler();
		}catch(Exception e){e.printStackTrace(); return;}

		PageFetcher f = new PageFetcher();
		Page p = new Page("http://lenta.ru/news/2011/05/20/quartet/");
		f.fetch(p);

		HTMLParser parser = new HTMLParser();
		parser.parse(p);

		System.out.println(parser.getUsefulContent());
	}
}
